#include <stdio.h>

int main()
{
    double s = 0.0f;
    double k;
    int n = 0;
    scanf("%lf", &k);
    for (double i = 1.0f; s <= k; i += 1.0f)
    {
        s += 1 / i;
        ++n;
    }
    printf("%d", n);
    return 0;
}